<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="yaml.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="yaml.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.yaml.html">Yaml</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="yaml.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
 </p>

 <dl id="yaml.constants.style">
  <strong class="title"> <span class="function"><a href="function.yaml-parse.html" class="function">yaml_parse()</a></span> 回调方法所使用的实体标量的风格。 
   </strong>
  
   <dt id="constant.yaml-any-scalar-style">
    <strong><code>YAML_ANY_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.yaml-plain-scalar-style">
    <strong><code>YAML_PLAIN_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.yaml-single-quoted-scalar-style">
    <strong><code>YAML_SINGLE_QUOTED_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.yaml-double-quoted-scalar-style">
    <strong><code>YAML_DOUBLE_QUOTED_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.yaml-literal-scalar-style">
    <strong><code>YAML_LITERAL_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
  
   <dt id="constant.yaml-folded-scalar-style">
    <strong><code>YAML_FOLDED_SCALAR_STYLE</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
    </span>
   </dd>

  
 </dl>


 <dl id="yaml.constants.tag">
  <strong class="title"><span class="function"><a href="function.yaml-parse.html" class="function">yaml_parse()</a></span> 回调方法
   可使用的通用标签。</strong>
  
   <dt id="constant.yaml-null-tag">
    <strong><code>YAML_NULL_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:null&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-bool-tag">
    <strong><code>YAML_BOOL_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:bool&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-str-tag">
    <strong><code>YAML_STR_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:str&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-int-tag">
    <strong><code>YAML_INT_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:int&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-float-tag">
    <strong><code>YAML_FLOAT_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:float&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-timestamp-tag">
    <strong><code>YAML_TIMESTAMP_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:timestamp&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-seq-tag">
    <strong><code>YAML_SEQ_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:seq&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-map-tag">
    <strong><code>YAML_MAP_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;tag:yaml.org,2002:map&quot;
    </span>
   </dd>

  
  
   <dt id="constant.yaml-php-tag">
    <strong><code>YAML_PHP_TAG</code></strong>
    (<span class="type">string</span>)
   </dt>

   <dd>

    <span class="simpara">
     &quot;!php/object&quot;
    </span>
   </dd>

  
 </dl>


 <dl id="yaml.constants.encoding">
  <strong class="title">Encoding types for <span class="function"><a href="function.yaml-emit.html" class="function">yaml_emit()</a></span></strong>
  
   <dt id="constant.yaml-any-encoding">
    <strong><code>YAML_ANY_ENCODING</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     让发射器(emitter)选择一个编码。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-utf8-encoding">
    <strong><code>YAML_UTF8_ENCODING</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     以 UTF8 编码。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-utf16le-encoding">
    <strong><code>YAML_UTF16LE_ENCODING</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     以 UTF16LE 编码。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-utf16be-encoding">
    <strong><code>YAML_UTF16BE_ENCODING</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     以 UTF16BE 编码。
    </span>
   </dd>

  
 </dl>


 <dl id="yaml.constants.break">
  <strong class="title"><span class="function"><a href="function.yaml-emit.html" class="function">yaml_emit()</a></span> 的换行符类型</strong>
  
   <dt id="constant.yaml-any-break">
    <strong><code>YAML_ANY_BREAK</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     让发射器(emitter)选择一个换行符。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-cr-break">
    <strong><code>YAML_CR_BREAK</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     使用 <code class="literal">\r</code> 作为换行符(Mac 风格)。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-ln-break">
    <strong><code>YAML_LN_BREAK</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     使用 <code class="literal">\n</code> 作为换行符(Unix 风格)。
    </span>
   </dd>

  
  
   <dt id="constant.yaml-crln-break">
    <strong><code>YAML_CRLN_BREAK</code></strong>
    (<span class="type">integer</span>)
   </dt>

   <dd>

    <span class="simpara">
     使用 <code class="literal">\r\n</code> 作为换行符(DOS 风格)。
    </span>
   </dd>

  
 </dl>


</div>
</div></div></body></html>